package cn.seaboot.admin.mvc.response;

import java.io.Serializable;

/**
 * 无效的字段
 */
public class InvalidEntity implements Serializable {

    /**
     * 字段名
     */
    private String name;

    /**
     * 错误描述
     */
    private String reason;

    public InvalidEntity() {
    }

    public InvalidEntity(String name, String reason) {
        this.name = name;
        this.reason = reason;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @Override
    public String toString() {
        return "InvalidEntity{" +
                "name='" + name + '\'' +
                ", reason='" + reason + '\'' +
                '}';
    }
}
